<%-- 
    Document   : SelecionaPessoa
    Created on : Mar 5, 2010, 1:18:14 AM
    Author     : bruno
--%>

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Emprestar</title>
    </head>
    <body>

    <h1>Livros Disponíveis para Empréstimo</h1>

    <table id="itemTable" border="3">
    <tr >
        <th bgcolor=>ID</th>
        <th bgcolor=>Nome</th>
        <th bgcolor=>Ação</th>
    </tr>
    <c:forEach var="pessoa" begin="0" items="${requestScope.pessoas}">
        <tr>
            <td>${pessoa.id}&nbsp;&nbsp;</td>
            <td>${pessoa.name}&nbsp;&nbsp;</td>
            <td>
                <form id="selecionaPessoaForm" action="Emprestar" method="post">
                    <input type="hidden" id="itemId" name="itemId" value="${requestScope.itemId}" />
                    <input type="hidden" id="pessoaId" name="pessoaId" value="${pessoa.id}" />
                    <input type="submit" id="CreateRecord" value="CreateRecord" />
                </form>&nbsp;&nbsp;
            </td>
        </tr>
    </c:forEach>
    </table>

    <a href="index.jsp"><strong>Voltar para o início</strong></a>
</body>
</html>
